<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

  <head>
    <title>pManagr</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <%= stylesheet_link_tag "tripoli.simple" %>
    <!--[if IE]><%= stylesheet_link_tag "tripoli.simple.ie" %><![endif]-->
    <%= stylesheet_link_tag "style", :media => "screen, print" %>
    <%= javascript_include_tag :defaults %>
    <%= javascript_include_tag "FusionCharts" %>

<script type="text/javascript">

</script> 

  </head>

  <body onLoad="runfirst()">
    
    <div id="container">
      <div id="head">
        <%= render :partial => "users/user_bar" %>
        <div id="title">
          <h1>
            <%= link_to image_tag("logo.png", :border=>0), root_path %>
          </h1>
          <p>
            QuickLinks: <%= link_to 'Public Projects', projects_path %>
            <% if logged_in? %>
              | <%= link_to 'Your Dashboard', dashboard_path %>
              <% if current_user.pending_memberships.present? -%>
                | You have <%= current_user.pending_memberships.size %> pending membership<% if current_user.pending_memberships.size > 1 %>s<% end %>
              <% end -%>
            <% end %>
          </p>
          <% flash.keys.each do |msg| -%>
            <% if flash[msg.to_sym].present? -%>
              <div id="flash_<%=msg%>" class="<%=msg%>"><%= flash[msg.to_sym] %></div>
            <% end -%>
          <% end -%>
        </div>
      </div>
      <div id="middle" class="content">
        <%= yield %>
      </div>
      <div id="footer">
        Fall 2009 CS194-4:SaaS Final Project &copy; Alan Choi, Anhang Zhu, Karl He, Tian Wang
      </div>
    </div>
  </body>
</html>
